package com.taoye.thread;

public class Demo06 {
	public static void main(String[] args) {
		Thread t = new Demo06Thread();
		System.out.println("当前线程t的状态1" + t.isAlive());
		t.start();
		System.out.println("当前线程t的状态2" + t.isAlive());
	}
}

class Demo06Thread extends Thread {

	public Demo06Thread() {
		System.out.println("执行构造方法线程是：" + Thread.currentThread().getName());
		System.out.println("执行构造方法线程状态：" + Thread.currentThread().isAlive());
		System.out.println("Demo06Thread线程状态：" + this.isAlive());
	}

	@Override
	public void run() {
		System.out.println("执行run方法");
	}
}